package com.example.pharmacypick.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Prescription {
    private int prescriptionId;
    private int patientRecord;
    private String doctorName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createdTime;

    private String prescriptionDescription;

//    一个处方对应多种药品
    private List<Drug> drugs;

//    一对多
    private List<PrescriptionDrug> prescriptionDrug;
}
